package cz.proks.easyhelpdesk.gwt.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class LeftArrowClickEvent extends GwtEvent<LeftArrowClickEvent.Handler> {
    
    public static final Type<LeftArrowClickEvent.Handler> TYPE = new Type<LeftArrowClickEvent.Handler>();
           
    public static interface Handler extends EventHandler {
        void onLeftArrowClick(LeftArrowClickEvent event);        
    }        
            
    public LeftArrowClickEvent() {        
    }
    
    public static void fireEvent(HasLeftArrowClickHandlers source) {
        source.fireEvent(new LeftArrowClickEvent());
    }

    @Override
    public com.google.gwt.event.shared.GwtEvent.Type<Handler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(Handler handler) {
        handler.onLeftArrowClick(this);
    }    
}
